package com.qiyu.dubbo.router.starter.service.impl;

import com.qiyu.dubbo.common.DubboService;
import org.apache.dubbo.config.annotation.Service;

import java.awt.*;
import java.awt.event.InputEvent;
import java.awt.event.KeyEvent;
import java.io.IOException;

/**
 * @Author idea
 * @Date created in 6:01 下午 2020/11/25
 */
@Service
public class DubboServiceImpl implements DubboService {

    @Override
    public String doTest(String test) {
        System.out.println("do Test");
        return "success";
    }

    public static void main(String[] args) throws Exception {
        for(int i=0;i<100;i++){
            StringBuffer stb = new StringBuffer();
            for(int j=0;j<i;j++){
                stb.append("█");
            }
            stb.append(" 进度："+i+"%");
            System.out.print(stb);
            System.out.print("\r");
            Thread.sleep(1000);
        }
    }


}
